//当时正在生效的成本
function getCurrentCost(JSON_CSRL_LIST, NEW_COST_EFF_DATE, NEW_RETAIL_EFF_DATE) {
    var costlist = [];
    if (!isNull(JSON_CSRL_LIST)) {
        for (var i = 0; i < JSON_CSRL_LIST.length; i++) {
            if (JSON_CSRL_LIST[i].PRICE_TYPE == 'CS') {
                costlist.push(JSON_CSRL_LIST[i]);
            }
        }
    }
    var data = sortcostlist(costlist);
    var temp = 0;
    var bdate = !isNull(NEW_COST_EFF_DATE) ? new Date(NEW_COST_EFF_DATE) : new Date(NEW_RETAIL_EFF_DATE);
    for (var y= 0; y<data.length; y++) {
        if (betweenDay(new Date(data[y].EFFECTIVE_DATE),bdate) == 0 && data.EFFECTIVE_DATE != getNewDate(new Date())){
            continue;
        }
        if (betweenDay(new Date(data[y].EFFECTIVE_DATE), bdate) >= 0
            && betweenDay(bdate, new Date(data[y].EXPIRATION_DATE)) >= 0) {
            temp = data[y].VNPK_PPD_COST_AMT;
        }
    }
    return temp;
}






